A sorting algorithm is used to arrange elements of an array/list in a specific order.
There are various sorting algorithms that can be used to complete this operation. And, we can use any algorithm based on the requirement.
The efficiency of any sorting algorithm is determined by the time complexity and space complexity of the algorithm.
Searching Introduction
Bubble sort